package com.neo.office.server.domain.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;
import lombok.NonNull;

@Data
@TableName(value = "t_job")
@ApiModel(value="Job对象",description = "")
public class Job implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="id")
    private Integer id;

    /**
     * 职称名称
     */
    @NonNull
    @Excel(name = "职称")
    @TableField(value = "name")
    @ApiModelProperty(value="职称名称")
    private String name;

    /**
     * 职称等级
     */
    @TableField(value = "titleLevel")
    @ApiModelProperty(value="职称等级")
    private Object titleLevel;

    /**
     * 创建时间
     */
    @TableField(value = "createDate")
    @ApiModelProperty(value="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private LocalDateTime createDate;

    /**
     * 是否启用
     */
    @TableField(value = "enabled")
    @ApiModelProperty(value="是否启用")
    private Boolean enabled;

}